package com.peter.entity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;
/**
 */
public class Users {
    private int id;// id
    private String username;// 用户名
    private String password;// 密码
    private String email;// 邮箱
    private String phone;// 手机
    private String real_name;// 真实姓名
    private String avatar;// 头像
    private int status;// 状态
    private int role_id;// 角色id
    private Date create_time;// 创建时间
    private Date last_login_time;// 最后登录时间
    private String last_login_ip;// 最后登录ip

    public Users() {

    }

    public Users(int id, String username, String password, String email, String phone, String real_name, String avatar,
                 int status, int role_id, Date create_time, Date last_login_time, String last_login_ip) {

        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.phone = phone;
        this.real_name = real_name;
        this.avatar = avatar;
        this.status = status;
        this.role_id = role_id;
        this.create_time = create_time;
        this.last_login_time = last_login_time;
        this.last_login_ip = last_login_ip;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getReal_name() {
        return real_name;
    }

    public void setReal_name(String real_name) {
        this.real_name = real_name;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getRole_id() {
        return role_id;
    }

    public void setRole_id(int role_id) {
        this.role_id = role_id;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getLast_login_time() {
        return last_login_time;
    }

    public void setLast_login_time(Date last_login_time) {
        this.last_login_time = last_login_time;
    }

    public String getLast_login_ip() {
        return last_login_ip;
    }

    public void setLast_login_ip(String last_login_ip) {
        this.last_login_ip = last_login_ip;
    }

    @Override
    public String toString() {
        return "Users{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", phone='" + phone + '\'' +
                ", real_name='" + real_name + '\'' +
                ", avatar='" + avatar + '\'' +
                ", status=" + status +
                ", role_id=" + role_id +
                ", create_time=" + create_time +
                ", last_login_time=" + last_login_time +
                ", last_login_ip='" + last_login_ip + '\'' +
                '}';
    }
}
